from django.conf.urls import url
from django.contrib.auth.decorators import login_required
# from apps.user.views import RegisterView, ActiveView, LoginView, LogoutView, UserInfoView, UserOrderView, AddressView
from . import views

urlpatterns = [
    # 注册
    url(r'register$', views.RegisterView.as_view()),
    # 登录
    url(r'login$', views.LoginView.as_view(),name = 'login'),
    # 邮箱激活
    url(r'active/$', views.ActiveView.as_view()),
    # 退出登录
    url(r'logout$', views.LogoutView.as_view(),name='logout'),
    # 用户中心
    url(r'user$', views.UserInfoView.as_view(),name='user'),
    # 用户地址
    url(r'address$', views.AddressView.as_view(),name = 'address'),
]